package com.example.sourcesprng.define_factorybean.myobject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UseFactoryBean {

    @Autowired
//    @Qualifier("myFactoryBean")
    private MyObject myObject;

//    @Autowired
//    private MyFactoryBean myFactoryBean;

    public void userFactoryBean() {
        System.out.println("myFactoryBean的实力为：" + myObject.getClass());
//        System.out.println("&myFactoryBean的实例为：" + myFactoryBean.getClass());
    }
}
